﻿@model MMITWeb.Models.RequestTokenViewModel

@{
    ViewBag.Title = "Transaction: Request Withdrawal Token";

    AjaxOptions ajaxOpts = new AjaxOptions
    {
        UpdateTargetId = "response",
        LoadingElementId = "loading",
        LoadingElementDuration = 2000,
        Url = Url.Action("RequestWithdrawalToken"),
        Confirm = "Request A Withdrawal Token?"
    };
}


<div id="page" class="container">

<h2>Request Withdrawal Token</h2>

<div id="loading" style="display: none; color:Red; font-weight: bold" >
    <p style="vertical-align:top"><img src="@Url.Content("~/Content/Images/ajax-loader.gif")" alt="loading"/> Loading...</p>
</div>   
<div id="response">

</div>

@using(Ajax.BeginForm("RequestWithdrawalToken",ajaxOpts))
{
    @Html.ValidationSummary(true)
    @Html.LabelFor(m => m.Amount)
    <br />
    @(Html.Telerik().CurrencyTextBoxFor(m => m.Amount)
                    .Name("Amount")
                    .MinValue(0.00M)
                    .MaxValue(5000.00M)
                    .CurrencySymbol("NGN")

    )
    
    <p><input type="submit" value="Send" class="t-button t-button-icontext" 
            style="border: none; height: 32px; cursor: pointer; margin-top: 20px"/></p>   
}
</div>
